<%-- 
    Document   : index
    Author     : Habib, Arnaud
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<html>
    <head>
        <link href='bootstrap/css/bootstrap-responsive.min.css' rel='stylesheet' type='text/css'>
        <link href='bootstrap/css/bootstrap.css' rel='stylesheet' type='text/css'>
        <link href='bootstrap/css/bootstrap-responsive.css' rel='stylesheet' type='text/css'>
        
        <meta http-equiv='Content-Type' content='text/html; charset=UTF-8'>
        <title>TP Supervision JAVA</title>
    </head>

    <body>
        <h1>Superviser</h1>
        <form method="post" action="./displaySystemInfo">
            <label for="serveur">Quelle adresse IP ?</label><br/>
            <input type="text" name="serveur" id="serveur"/><br/><br/>
            <label for="serveur">Type d'information à récupérer ?</label><br/>            
            <input type="checkbox" name="methode" value="cpu" />Activité processeur <br/>
            <input type="checkbox" name="methode" value="memoire" />Taux de RAM disponible<br/>
            <input type="checkbox" name="methode" value="processus" />Liste des processus en cours<br/>
            <input type="submit" value="Rechercher" />
        </form>
        <h1>Historique</h1>
        <jsp:useBean id="report" class="com.rie.dao.DAO" scope="request"/>
         <form method="get" action="./controleurHistorique">
             <select id="existingServer" name="existingServer">
                  <option value="*">tout</option>
             <c:forEach var="item" items="${report.servers}">
                 <option><c:out value="${item}"/></option><br/>
             </c:forEach>
             </select>
             <input type="submit" value="Afficher" />
         </form>
    </body>
</html>
